GBML manual / Constants

BACKDROP_EMBER

The inside of a furnace: black at the top, then dark red, hot red and orange, with a white-hot glow at the bottom.

Works differently on Game Boy - On the Game Boy the sky becomes bands of its 4 shades (see screen_backdrop), so the sky shows only where the picture leaves the shade for the sky; the sky has to be named in the call.

Works differently on Game Boy Color - On the Game Boy Color the sky's colors go row by row into the picture's first color (see screen_backdrop), so the sky shows only where the picture uses that color; it has to be named in the call.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BACKDROP_EMBER: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the furnace sky, for screen_backdrop. The backdrop is the color that fills the screen behind every picture, and with this look it changes on every row: black at the top, then dark red, a hot red, orange, and a white-hot glow at the bottom. It has no blue and no purple in it, which is what tells it apart from BACKDROP_SUNSET.

It is made for a title screen or a cutscene in a forge, a volcano or a burning city. Only the places where nothing else is drawn show it, so draw black silhouettes in front of it and let the glow come up behind them. strength picks how rich the color is: 1 is a pale, ashy pink, 2 is in between, and 3 is full fire.

A real capture, three pictures of the same furnace glow - strength 1 (a pale ashy pink), strength 2 (in between) and strength 3 (full fire: dark red through orange) - the same rows each time, with a lighthouse on dark ground in frontA real capture, three pictures of the same furnace glow - strength 1 (a pale ashy pink), strength 2 (in between) and strength 3 (full fire: dark red through orange) - the same rows each time, with a lighthouse on dark ground in front
A real capture, three pictures of the same furnace glow - strength 1 (a pale ashy pink), strength 2 (in between) and strength 3 (full fire: dark red through orange) - the same rows each time, with a lighthouse on dark ground in front

One place in the glow, three strengths: 1, 2 and 3 from left to right. Real pictures from a Game Boy Advance ROM, each one a slice of the screen.

The glow is drawn twice as tall as the screen, and speed slides the screen down it and back again, so the fire seems to rise and sink. A speed of 0 holds one view still; 0.25 takes about ten seconds to go from the black top to the white-hot bottom.

A real capture, 18 frames played in a loop - a black sky that slowly turns dark red, then hot red, then orange and finally a white-hot glow at the bottom, while the lighthouse and the ground in front of it never changeA real capture, 18 frames played in a loop - a black sky that slowly turns dark red, then hot red, then orange and finally a white-hot glow at the bottom, while the lighthouse and the ground in front of it never change
A real capture, 18 frames played in a loop - a black sky that slowly turns dark red, then hot red, then orange and finally a white-hot glow at the bottom, while the lighthouse and the ground in front of it never change

The furnace flaring up, sped up: eighteen real pictures eight frames apart, played a tenth of a second each. The lighthouse and the ground never change. This picture is an animated PNG; a viewer that cannot animate shows its first frame, the black top of the furnace.

Example

screen_backdrop(BACKDROP_EMBER, 3, 0.25);

A furnace that slowly flares up. Call it once, for example when the room starts - it keeps going by itself until you call screen_backdrop(BACKDROP_NONE, 0, 0) or a room is loaded.

See also: screen_backdropBACKDROP_NONEBACKDROP_SUNSET